package cn.hn.tx.rebot.blog.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import cn.hn.tx.rebot.blog.model.Blog;
import cn.hn.tx.rebot.blog.model.Comment;

public interface IRebotBlogService {
	
	void insertRebotWriteBlog_HandleHref(String keyword,String href,String title, String content, String url,
			int taskType, Date insertDate, Date updateDate, int status);

	void insertRebotWriteBlog(String orgTitle,String title, String content, String url,
			int taskType, Date insertDate, Date updateDate, int status);
	
	void updateRebotWriteBlog(Blog blog);
	
	List<Map<String,Object>> queryListRebotWriteBlog(String title);
	
	Map<String,Object> queryRebotWriteBlog(int id);
	
	List<Blog> queryAllRebotWriteBlog();
	
	List<Blog> queryRebotWriteBlogByStatus_Comment(Integer status);
	
	void updateUserBlogHot();
	
	List<Blog> queryListRebotWriteBlogByStatus(int status,int limit);
	
	void insertRebotComment(Comment comment);
	
	void updateRebotComment(Comment comment);
	
	List<Comment> queryListRebotComment(int bid,int status);
	
	List<Comment> queryListRebotCommentByBid(Integer bid);
}
